home *** CD-ROM | disk | FTP | other *** search
/ Champak 109 / Vol 109.iso / games / sushi_oi.swf / scripts / DefineButton2_68 / BUTTONCONDACTION on(release)_2.as < prev    next >
Encoding:
Text File  |  2008-11-12  |  1.8 KB  |  58 lines

  1. on(release){
  2.    if(hitTest(_root.egg))
  3.    {
  4.       _root.eggrice.gotoAndPlay(5);
  5.       _root.machine.gotoAndPlay(1);
  6.       _root.sound1.gotoAndPlay(2);
  7.       setProperty("_root.egg", _X, "162");
  8.       setProperty("_root.egg", _Y, "312");
  9.       setProperty("_root.rice", _X, "47");
  10.       setProperty("_root.rice", _Y, "390");
  11.    }
  12.    if(hitTest(_root.shrimp))
  13.    {
  14.       _root.shrimprice.gotoAndPlay(5);
  15.       _root.machine.gotoAndPlay(1);
  16.       setProperty("_root.shrimp", _X, "225");
  17.       setProperty("_root.shrimp", _Y, "302");
  18.       setProperty("_root.rice", _X, "47");
  19.       setProperty("_root.rice", _Y, "390");
  20.    }
  21.    if(hitTest(_root.salmon))
  22.    {
  23.       _root.salrice.gotoAndPlay(5);
  24.       _root.machine.gotoAndPlay(1);
  25.       setProperty("_root.salmon", _X, "275");
  26.       setProperty("_root.salmon", _Y, "314");
  27.       setProperty("_root.rice", _X, "47");
  28.       setProperty("_root.rice", _Y, "390");
  29.    }
  30.    if(hitTest(_root.tuna))
  31.    {
  32.       _root.tunarice.gotoAndPlay(5);
  33.       _root.machine.gotoAndPlay(1);
  34.       setProperty("_root.tuna", _X, "339");
  35.       setProperty("_root.tuna", _Y, "314");
  36.       setProperty("_root.rice", _X, "47");
  37.       setProperty("_root.rice", _Y, "389");
  38.    }
  39.    if(hitTest(_root.squid))
  40.    {
  41.       _root.squidrice.gotoAndPlay(5);
  42.       _root.machine.gotoAndPlay(1);
  43.       setProperty("_root.squid", _X, "393");
  44.       setProperty("_root.squid", _Y, "312");
  45.       setProperty("_root.rice", _X, "47");
  46.       setProperty("_root.rice", _Y, "389");
  47.    }
  48.    if(hitTest(_root.clam))
  49.    {
  50.       _root.clamrice.gotoAndPlay(5);
  51.       _root.machine.gotoAndPlay(1);
  52.       setProperty("_root.clam", _X, "451");
  53.       setProperty("_root.clam", _Y, "311");
  54.       setProperty("_root.rice", _X, "47");
  55.       setProperty("_root.rice", _Y, "389");
  56.    }
  57. }
  58.